package org.keyroy.map_editor.map.layers;

import org.keyroy.map_editor.map.Map;
import org.keyroy.tag.Tag;
import org.keyroy.tag.XmlSupport;

public class CollideLayer implements XmlSupport {
	public boolean[][] collides;

	public CollideLayer() {
	}

	public CollideLayer(int width, int height) {
		collides = new boolean[width][height];
	}

	public void setMap(Map map) {
		collides = new boolean[map.getColumns()][map.getRows()];
	}

	@Override
	public String getTagName() {
		return "cl";
	}

	@Override
	public void initObj(Tag tag) {
	}

	@Override
	public void initTag(Tag tag) {
	}

	public static interface MoveableCheck {
		public boolean moveable(int ID);
	}
}
